import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import lazyPlugin from 'vue3-lazy'// 图片懒加载
import loadingDireactive from './components/base/loading/directive'// 引入自定义指令
import noResultDirective from './components/base/no-result/directive'// 引入自定义指令

// 全局引入样式文件
import '@/assets/scss/index.scss'
createApp(App).use(store).use(router).use(lazyPlugin, {
  loading: require('@/assets/images/default.png')
}).directive('loading', loadingDireactive).directive('result', noResultDirective).mount('#app')
